home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Freeware / Adobe AIR 1.5.1 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / events / ScrollEvent.as < prev    next >
Encoding:
Text File  |  2009-02-12  |  1021 b   |  38 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class ScrollEvent extends Event
  9.    {
  10.       mx_internal static const VERSION:String = "3.0.0.0";
  11.       
  12.       public static const SCROLL:String = "scroll";
  13.       
  14.       public var detail:String;
  15.       
  16.       public var delta:Number;
  17.       
  18.       public var position:Number;
  19.       
  20.       public var direction:String;
  21.       
  22.       public function ScrollEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:String = null, param5:Number = NaN, param6:String = null, param7:Number = NaN)
  23.       {
  24.          super(param1,param2,param3);
  25.          this.detail = param4;
  26.          this.position = param5;
  27.          this.direction = param6;
  28.          this.delta = param7;
  29.       }
  30.       
  31.       override public function clone() : Event
  32.       {
  33.          return new ScrollEvent(type,bubbles,cancelable,detail,position,direction,delta);
  34.       }
  35.    }
  36. }
  37.  
  38.